package com.ruoyi.lock.mapper;

import com.ruoyi.lock.domain.AFaultReport;

import java.util.List;

/**
 * 故障上报Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-16
 */
public interface AFaultReportMapper 
{
    /**
     * 查询故障上报
     * 
     * @param id 故障上报主键
     * @return 故障上报
     */
    public AFaultReport selectAFaultReportById(Long id);

    public AFaultReport selectAFaultReportByLockId(Long lockId);

    /**
     * 查询故障上报列表
     * 
     * @param aFaultReport 故障上报
     * @return 故障上报集合
     */
    public List<AFaultReport> selectAFaultReportList(AFaultReport aFaultReport);


    public List<AFaultReport> selectAFaultReportList1(AFaultReport aFaultReport);

    /**
     * 新增故障上报
     * 
     * @param aFaultReport 故障上报
     * @return 结果
     */
    public int insertAFaultReport(AFaultReport aFaultReport);

    public int listCount(AFaultReport aFaultReport);

    /**
     * 修改故障上报
     * 
     * @param aFaultReport 故障上报
     * @return 结果
     */
    public int updateAFaultReport(AFaultReport aFaultReport);

    /**
     * 删除故障上报
     * 
     * @param id 故障上报主键
     * @return 结果
     */
    public int deleteAFaultReportById(Long id);

    /**
     * 批量删除故障上报
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAFaultReportByIds(Long[] ids);
}
